package com.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.Goods2;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author lifeng
 * @create 2022-11-21 18:45
 */
@Repository
public interface Goods2Dao extends BaseMapper<Goods2> {

    @Select("select * from goods2 where type_id = #{id}")
    List<Goods2> findByTypeId(@Param("id") Integer id);

}
